package services

import (
	"ai/config"
	"ai/models"
)

type LogService interface {
	CreateLog(log *models.ApiLog) error
}

type logService struct{}

func NewLogService() LogService {
	return &logService{}
}

func (s *logService) CreateLog(log *models.ApiLog) error {
	return config.DB.Create(log).Error
}
